package stringbuilder;

public class Demo {
	public static void main(String[] args){
		StringBuilder stringBuilder = new StringBuilder();
		double a =11.5;
		boolean flag = true;
		stringBuilder.append("a=").append(a).append(",b=").append(flag);
		System.out.println(stringBuilder);
		//提高字符串转换的效率
		String ab = new StringBuffer().append("a").append("b").append("c").toString();
		System.out.println(ab);
		StringBuilder stu = new StringBuilder("fuck");
		stu.append("you");
		stu.insert(4, "kao");
		stu.insert(4, false);
		System.out.println(stu);
 	}
}
